Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prune ref IDs and cache key digests #63

Merged
merged 1 commit into from
May 24, 2024
Merged

Conversation

mikejholly
Copy link
Contributor

@mikejholly mikejholly commented May 23, 2024

The PR adds code for ref ID garbage collection & improves memory uses around cache key generation.

  • The ref ID database (BoltDB) code has moved to worker/simple.go
  • WorkerResultSource has a new prune function that purges stale ref IDs (every 30 mins)
  • cacheKeyManager is build-specific & can be created (and disposed of) on a per-build basis

Core tests: earthly/earthly#4147

@mikejholly mikejholly force-pushed the mh/next-prune-ids branch 2 times, most recently from e7edfd8 to a6f87b0 Compare May 24, 2024 18:33
@mikejholly mikejholly marked this pull request as ready for review May 24, 2024 18:50
@mikejholly mikejholly requested a review from a team May 24, 2024 18:51
@mikejholly mikejholly force-pushed the mh/next-prune-ids branch from a6f87b0 to 7d8c917 Compare May 24, 2024 19:16
@mikejholly mikejholly merged commit 7d8c917 into earthly-next May 24, 2024
29 of 53 checks passed
@mikejholly mikejholly deleted the mh/next-prune-ids branch May 24, 2024 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants